﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="bkgl.aspx.cs" Inherits="Admin_bkgl" EnableEventValidation="false"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style=" margin:50px auto; width:95%">
    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="wbh" Width="100%" 
        AllowPaging="True" BackColor="White" BorderColor="#999999" BorderStyle="None" 
        BorderWidth="1px" CellPadding="3" GridLines="Vertical" 
        onrowdatabound="GridView2_RowDataBound" 
            onpageindexchanging="GridView2_PageIndexChanging">
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Left" Width="5%" />
            </asp:TemplateField>
            <asp:HyperLinkField DataNavigateUrlFields="wbh" 
                DataNavigateUrlFormatString="stuinfo.aspx?wbh={0}" DataTextField="wbh" 
                HeaderText="网报号" >
            <HeaderStyle HorizontalAlign="Left" Width="10%" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="wbh" 
                DataNavigateUrlFormatString="stuinfo.aspx?wbh={0}" DataTextField="sname" 
                HeaderText="姓名" >
            <HeaderStyle HorizontalAlign="Left" Width="10%" />
            </asp:HyperLinkField>
            <asp:BoundField DataField="proName" HeaderText="报考专业" 
                SortExpression="proName" >
            <HeaderStyle HorizontalAlign="Left" Width="20%" />
            </asp:BoundField>
            <asp:BoundField DataField="sdept" HeaderText="所在院校" SortExpression="sdept" >
            <HeaderStyle HorizontalAlign="Left" Width="20%" />
            </asp:BoundField>
            <asp:BoundField DataField="byzy" HeaderText="毕业专业" SortExpression="byzy" >
            <HeaderStyle HorizontalAlign="Left" Width="20%" />
            </asp:BoundField>
            <asp:BoundField DataField="sphone" HeaderText="联系电话" 
                SortExpression="sphone" >
            <HeaderStyle HorizontalAlign="Left" Width="10%" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="报考状态"  >
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" 
                        Text='<%# Eval("Status") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#0000A9" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#000065" />
        <PagerTemplate>
                当前第:
                <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                页/共:
                <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                页
                <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                    Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                    CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                转到第
                <asp:TextBox ID="txtNewPageIndex" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'/>页
                <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-2"
                    CommandName="Page" Text="GO"/>
            </PagerTemplate>
    </asp:GridView>
    <table class="style1">
        <tr>
            <td style="text-align: right" width="20%">
                <asp:Label ID="Label1" runat="server" Text="网报号，姓名或专业："></asp:Label>
            </td>
            <td width="20%">
                <asp:TextBox ID="TextBox1" runat="server" Width="95%"></asp:TextBox>
            </td>
            <td style="text-align: left">
                <asp:Button ID="Button1" runat="server" Text="查询" CssClass="btn01" 
                    onclick="Button1_Click"  />
&nbsp;
                <asp:Button ID="Button2" runat="server" Text="导出Excel" CssClass="btn01" 
                    onclick="Button2_Click" />
            </td>
        </tr>
    </table>
    </div>
</asp:Content>

